package com.life.muyu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author zyb
 * @Date 2020-04-07 11:17 AM
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_news")
public class News {
    @TableId(type = IdType.INPUT)
    private Integer id;
    private String cover;
    private String description;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date newsDate;
    private String newsHref;
    private String newsTitle;
}
